<?php

class Car
{
	public $name="奥迪";
	public $color="红色";

	public function __construct($name="奥迪",$color="红色")
	{
		$this->name = $name;
		$this->color = $color;
		// echo "我是产生的时候自动执行的方法<br>";
	}
	public function run($name){
		echo $name."的".$this->color."车可以跑";

	}
	public function zairen(){
		echo "车可以裁人";
	}

	public function __destruct()
	{
		echo "我是对象死亡自动执行的方法<br>";
	}
}


